package com.ftg.learn.service;

import com.ftg.learn.entity.Student;
import com.ftg.learn.mapper.StudentMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

/**
 * @author kangjx
 * @createTime 2022/8/16
 */
@Service
public class StudentServie {

    @Resource
    StudentMapper studentMapper;

    public List<Student> likeparam(String sno){
        if(null == sno || sno.equals("")){
            throw new RuntimeException("sno不能为空");
        }
        return studentMapper.likeForParma(sno);
    }

}
